package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;

public class CataAuctionItem extends AppItem implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/** 拍卖会id */
	private String id;
	/** 拍卖会名称 */
	private String title;
	/** 拍卖会logo */
	private String imgurl;
	/** 专场数量 */
	private String special_num;
	/** 拍品数量 */
	private String lot_num;
	/** 拍卖会开始时间 */
	private String auction_start_time;
	private ArrayList<CataSpecialItem> list;

	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		id = obj.optString("id");
		title = obj.optString("title");
		imgurl = obj.optString("imgurl");
		special_num = obj.optString("special_num");
		lot_num = obj.optString("lot_num");
		auction_start_time = obj.optString("auction_start_time");
	}

	public ArrayList<CataSpecialItem> getList() {
		return list;
	}

	public void setList(ArrayList<CataSpecialItem> list) {
		this.list = list;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public String getSpecial_num() {
		return special_num;
	}

	public void setSpecial_num(String special_num) {
		this.special_num = special_num;
	}

	public String getLot_num() {
		return lot_num;
	}

	public void setLot_num(String lot_num) {
		this.lot_num = lot_num;
	}

	public String getAuction_start_time() {
		return auction_start_time;
	}

	public void setAuction_start_time(String auction_start_time) {
		this.auction_start_time = auction_start_time;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "AuctionItem [id=" + id + ", title=" + title + ", imgurl="
				+ imgurl + ", special_num=" + special_num + ", lot_num="
				+ lot_num + ", auction_start_time=" + auction_start_time + "]";
	}
	
}
